Hi Tom,
I have a few lines of code in an init file to stop
the axis if an estop is detected...
for (;;) // loop forever Estops
{
WaitNextTimeSlice();
if (ReadBit(138)) // Estop bit
{
Jog(0,0.0); // stop X
Jog(1,0.0); // stop Y
Jog(2,0.0); // stop A
}
}
For some reason, when the estop is pressed the bit
shows active on the Digital IO screen, but the motion
doesn't stop until I release the stop bit. You probably
know this, but the bit is an opto input on a Kanalog
board.
On a side note, there is also a forever loop in
this program to monitor a start button. Is there any
issues with having more than one forever loop within a
single program?
Thanks in advance,
David.